package com.cpi.basilos.user.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.cpi.user.view.UserView;
import com.cs.common.utils.StringUtils;

public class UserForm extends ActionForm {
	private static final long serialVersionUID = -966150014554181910L;
	private UserView userView;
	
	public UserForm(){
		super();
		userView = new UserView(); 
	}

	public UserView getUserView() {
		return userView;
	}

	public void setUserView(UserView userView) {
		this.userView = userView;
	}
	
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		userView.setUsrId(StringUtils.EMPTY_STRING);
		userView.setPassword(StringUtils.EMPTY_STRING);
	}
}